<?php

namespace App\Models\Common;

use App\Models\Base;

class AdvertImg extends Base
{
    /**
     * 只查询 home_top的作用域
     *
     * @param  \Illuminate\Database\Eloquent\Builder  $query
     * @return \Illuminate\Database\Eloquent\Builder
     */
    public function scopeHometop($query)
    {
        return $query->where('position', 'home_top');
    }


}
